// var mUrl = 'http://47.93.1.92:8999/hunt-admin';
//var mUrl = 'http://192.168.8.103:8080';
//var mUrl = 'http://39.105.51.148:6060/hunt-admin';
//var mUrl = 'http://39.105.51.148:7878/hunt-admin';
var mUrl = 'http://39.105.51.148:7878/hunt-admin';//正式服务器
//var mUrl = 'http://192.168.1.152:8080/hunt-admin';//测试服务器
//var mUrl = 'http://localhost:8080';//本机服务器
feedaccount = {
    form_clear: function () {
        $("#accountforcustomer-search-form").form('reset');
        $("#accountforcustomer-search-form").form('clear');
    },
    init_activitylog_view: function (){
        var operator = $("input[name='operator']").val();
        var operationType = $("input[name='operationType']").val();
        $("#activitylog_grid").datagrid({
            url: getRootPath()+'/activitylog/activitylogget',
            method: 'get',
            fitColumns: true,
            pagination: true,
            pageList: [10, 20, 50, 100],
            pageSize: 10,
            toolbar: '#activitylog-tool-bar',
            nowrap:false,
            columns: [[
                {field: 'operator', title: '操作客服', width: 20, align: "center" },
                { field: 'operationType', title: '操作类型', width: 20, align: "center" },
                { field: 'operationInformation', title: '操作详情信息', width: 20, align: "center" },
                { field: 'operationTime', title: '操作时间', width: 20, align: "center" }
            ]],
            queryParams: {
                operator: operator,
                operationType: operationType
            }
        });
    },
    clearsearch: function (){
        $("#activitylog-search-form").form('clear');
    }
}
$(document).ready(function () {
    feedaccount.init_activitylog_view();
    $("#activitylog-select-btn").click(function () {
        //
        feedaccount.init_activitylog_view();
    });
    $("#activitylog-clear-btn").click(function () {
        //
        feedaccount.clearsearch();
    });
})
